#ifndef _DSWSERVERCENTER_H
#define _DSWSERVERCENTER_H
#include <libbase/dswbase.h>
#include <libdswserver/dswavserver.h>
#include <libdswserver/dswmsgserver.h>

class CDswservercenter : public CDswbase
{
public:
	CDswservercenter(LPST_ENV_T pEnv);
	virtual ~CDswservercenter();
private:
	static void cbCreateLocalServersTask(int fd, short events, void* ctx){((CDswservercenter*)ctx)->CreateLocalServersTask(fd, events);};
	void CreateLocalServersTask(int fd, short events);
protected:
	virtual int OnMessage(EN_MSG_TYPE nMsgType, void * pParam);
private:
	ST_TIMER_PARAM_T m_nCreateSvrTask;
	CDswavserver* m_pAVServer;
	CDswmsgserver* m_pMsgServer;
};

#endif

